<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
	    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page errorPage="../error/404.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8">
<title>编辑友情列表记录</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
    <script type="text/javascript" src="/js/common.js"></script>   
     <script type="text/javascript" src="/js/jquery-1.8.3.min.js"></script> 
     <script type="text/javascript" src="/js/jquery.min.js"></script>  
   <script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/kindeditor-all-min.js"></script>
<script type="text/javascript" charset="utf-8" src="/js/kindeditor-4.1.10/lang/zh_CN.js"></script>

<style type="text/css">
.layui-form-item .layui-inline {
	width: 33.333%;
	float: left;
	margin-right: 0;
}

@media ( max-width :1240px) {
	.layui-form-item .layui-inline {
		width: 100%;
		float: none;
	}
}
</style>
</head>
<body class="childrenBody">
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend style="text-align: center">${admin.realname}博客</legend>
</fieldset>
	<form class="layui-form" style="width: 80%;" id="Link" >
		<!-- 管理员id -->
		<input type="hidden" name="id" value="${link.id}" id="id"/>
		<div class="layui-form-item">
			<label class="layui-form-label">友情链接名称</label>
			<div class="layui-input-block">
				<input type="text" name="lname" id="lname" class="layui-input userName"
					lay-verify="required" placeholder="请输入友情链接名称" value="${link.lname}">
			</div>
			</div>
				
		<div class="layui-form-item">
			<label class="layui-form-label">友情链接URL</label>
			<div class="layui-input-block">
				<input type="text" id="lpath" name="lpath" class="layui-input userName" lay-verify="required" placeholder="友情链接URL" value="${link.lpath}">
			</div>
		</div> 
		
			<div class="layui-form-item">
			<label class="layui-form-label">友情链接说明</label>
			<div class="layui-input-block">
				             <textarea placeholder="请输入友情链接说明" class="layui-textarea" name="ldes" id="ldes" lay-verify="required">${link.ldes}</textarea>

			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">优秀程度</label>
			<div class="layui-input-block">
			<input type="text" id="uppid" name="uppid" class="layui-input userName" lay-verify="required" placeholder="请输入优秀程度" value="${link.uppid}">
			
			</div>
		</div>
		
		<div class="layui-form-item">
			<label class="layui-form-label">站长推荐</label>
			<div class="layui-input-block">
<input type="text" id="adminurl" name="adminurl" class="layui-input userName" lay-verify="required" placeholder="请输入站长推荐" value="${link.adminurl}">

			</div>
		</div>
		
		
		<div class="layui-input-inline layui-form">
		<label class="layui-form-label">审核</label>
		<div class="layui-input-block">
			<c:if test="${link.isview==1}">
				<input type="radio" name="isview" value="1" title="待审核" checked >
				<input type="radio" name="isview" value="2" title="已审核"> 
			</c:if>
				<c:if test="${link.isview==2}">
				<input type="radio" name="isview" value="1" title="待审核" >
				<input type="radio" name="isview" value="2" title="已审核" checked> 
			</c:if>
						</div>
	</div>
	
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit="" lay-filter="updLink">立即保存</button>
			</div>
		</div>
	</form>
	<script type="text/javascript" src="/layui/layui.js"></script>
	<script type="text/javascript" src="/js/link/editLink.js"></script>
</body>
</html>